# 一个学校，有三个班级，班级里边分别有一些学生。用列表实现。
# 分别计算每个班级的人数，并把每个班级的学生信息打印出来
cls1=["蔡徐坤","范小勤","丁真"]
cls2=["曹操","曹丕","曹睿","曹仁"]
cls3=["Amy","Tom","Alice","Dior","Daina"]
school=[cls1,cls2,cls3]
print(school)

# for i in school:
#     sum=0
#     for j in i:
#         print(j)
#         sum+=1
#     print("班的人数为%d"%sum)

for i in range(0,len(school)):
    sum=0
    for j in range(0,len(school[i])):
        print(school[i][j]+"  ",end="")
        sum+=1
    print("%d班级一共有%d个同学"%(i+1,sum))



